import traceback
from typing import Any

import requests
try:
    APPID='wxd989ed601a0c4637'
    SECRET='defc243621732981fea2bc494889300d'
    url = 'https://api.weixin.qq.com/sns/jscode2session?appid={0}&secret={1}&js_code={2}&grant_type=authorization_code'.\
        format(APPID,SECRET,"")
    print(url)
except:
    traceback.print_exc()


# res = requests.get("https://bobsunjack2.loca.lt/")
# print(res.text)

class Bob:
    myBook="book"

    @classmethod
    def bob(cls):
        print("bob"+cls.myBook)
    def __init__(self):
        self.__age=10
    
    def show(self):
        print("show")

    def __del__(self):
        print("del")

    def __call__(self, b) -> Any:
        print("call"+b)

print(Bob.myBook)
Bob.bob()
bob=Bob()

bob.show()

bob("#3")

print(bob.age)